package Util;

import java.util.ArrayList;

import org.eclipse.swt.graphics.Point;

import Figure.Drawing;
import Figure.Figure;

public class FigureManager {
	
	private ArrayList<Figure> figureList;
	private String userID;
	
	public FigureManager(ArrayList<Figure> figureList, String userID){
		this.figureList = figureList;
		this.userID = userID;
	}
	
	public Drawing makeDrawing(){
		Drawing drawing = new Drawing(userID, figureList.size());
		return drawing;
	}
	
	public void setDrawingPath(Drawing drawing, Point point){
		drawing.addPoint(point);
	}
	
	public void addFigure(Figure figure){
		figureList.add(figure);
	}
}
